package com.idheima.zuoye.zuoye4;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Test2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\java-base-ws\\JavaAdvanceProject\\day12_IO_zifuji\\src\\com\\idheima\\IO\\aikun2");

        int len;

        byte[] bytes = new byte[17];
        //byte key = 0x55;

        while ((len = fis.read(bytes)) != -1) {
            for (int i = 0; i < len; i++) {
               // bytes[i] = (byte) (bytes[i] ^ key);
                bytes[i] = (byte) (bytes[i] -1);
            }
        }
        System.out.println(new String(bytes));
    }
}
